package com.meiyue.config.interceptor;

import com.meiyue.library.utils.MsgUtils;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * MeiyueJavaProject
 * com.meiyue.config.interceptor
 * Created by Chris Chen
 * 2017/9/16
 * Explain:自定义拦截器 适配器模式
 */
public class MyInterceptor extends HandlerInterceptorAdapter {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        MsgUtils.println("自定义拦截器-适配器模式->执行之前");
        return true;
    }
}
